package com.enjoyor.health.HGPT.core.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
@TableName("selftest_record")
@ApiModel(value = "SelftestRecord对象", description = "")
public class SelftestRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("哪一次自测")
    @TableId("record_id")
    private String recordId;

    @ApiModelProperty("自测套卷id")
    private String selftestId;

    @ApiModelProperty("问题序号")
    //@TableId("question_number")
    private Integer questionNumber;

    @ApiModelProperty("选项号")
    private String abcd;

    @ApiModelProperty("测试时间（数据生成时间）")
    private LocalDateTime testTime;

    @ApiModelProperty("分数")
    private Integer score;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public String getSelftestId() {
        return selftestId;
    }

    public void setSelftestId(String selftestId) {
        this.selftestId = selftestId;
    }

    public Integer getQuestionNumber() {
        return questionNumber;
    }

    public void setQuestionNumber(Integer questionNumber) {
        this.questionNumber = questionNumber;
    }

    public String getAbcd() {
        return abcd;
    }

    public void setAbcd(String abcd) {
        this.abcd = abcd;
    }

    public LocalDateTime getTestTime() {
        return testTime;
    }

    public void setTestTime(LocalDateTime testTime) {
        this.testTime = testTime;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "SelftestRecord{" +
            "id = " + id +
            ", userId = " + userId +
            ", recordId = " + recordId +
            ", selftestId = " + selftestId +
            ", questionNumber = " + questionNumber +
            ", abcd = " + abcd +
            ", testTime = " + testTime +
            ", score = " + score +
        "}";
    }
}
